package com.eginfo.vue;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;

public class specialAdapter extends ArrayAdapter<String> {
	private int[] colors = new int[] { 0x30096A09, 0x300000FF };

	public specialAdapter(Context context, int resource, String[] from) {
		super(context, resource, from);
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
	  View view = super.getView(position, convertView, parent);
	  int colorPos = position % colors.length;
	  view.setBackgroundColor(colors[colorPos]);
	  return view;
	}
}
